package com.zzxy.spring.service.impl;

import com.zzxy.spring.service.IteacherService;
import org.springframework.stereotype.Service;

@Service("teacherService")

public class TeacherServiceImpl implements IteacherService {
    @Override
    public int addTeacher() {
        System.out.println("add teacher ...");
        int i=1/0;
        return 11111;
    }

    @Override
    public void deleteTeacher() {
        System.out.println("delete teacher ...");
    }

    @Override
    public void updateTeacher() {
        System.out.println("update teacher ...");
    }
}
